from config import db

class TxRawData(db.Model):
    __tablename__ = 'tx_raw_data'
    pk_id = db.Column(db.Integer, primary_key=True)
    block_hash = db.Column(db.String)
    block_height = db.Column(db.Integer)
    block_time_stamp = db.Column(db.DateTime)
    tx_hash = db.Column(db.String)
    tx_index = db.Column(db.String)
    value = db.Column(db.String)
    def __init__(self, pk_id, block_hash, block_height, block_time_stamp, tx_hash, tx_index,value):
        self.pk_id = pk_id
        self.block_hash = block_hash
        self.block_height = block_height
        self.block_time_stamp = block_time_stamp
        self.tx_hash = tx_hash
        self.tx_index = tx_index
        self.value = value